package com.woniu.core.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.woniu.core.entity.CoreBlacklist;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface CoreBlacklistMapper extends BaseMapper<CoreBlacklist> {

    /**
     * 查询黑名单
     */
    List<CoreBlacklist> selectCoreBlacklist(@Param("coreBlacklist") CoreBlacklist coreBlacklist);

    /**
     * 拉黑
     */
    void addCoreBlacklist(@Param("coreBlacklist") CoreBlacklist coreBlacklist);

    /**
     * 取消拉黑
     */
    void deleteCoreBlacklist(Integer id);
}
